﻿@using Nop.Web.Models.Common
@model TopPageLinkModel
<script>
    (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s);
        js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
</script>
<div class="top-page-link">
    <div class="master-wrapper-page">
        
        <div style="float:left; margin-right: 10px;">
            @Html.Action("SupportBox", "Common")
        </div>

        @if (Model.Hotline != null && !string.IsNullOrEmpty(Model.Hotline.Title))
        {
            <div class="hotline utm">
                <span style="color:white;">Hotline:</span> @Model.Hotline.Title
            </div>
        }
        @foreach(var topic in Model.LastestTopics)
        {
            <div class="page topic-page" id="ph-topic">
                <div id="ph-title">
                    <div class="page-title">
                        <h1>
                            @topic.Title
                        </h1>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="page-body">
                    @Html.Raw(topic.Body)
                </div>
            </div>
        }
        
        @if (Model.MeLink != null && !string.IsNullOrEmpty(Model.MeLink.Title))
        {
            <div class="zm-like" >
                <a class="" name="zm_share" type="button" title="Chia sẻ lên Zing Me"></a>
                <script src="http://stc.ugc.zdn.vn/link/js/lwb.0.7.js" type="text/javascript"></script>
            </div>
        }
        
        @if (Model.FBLink != null && !string.IsNullOrEmpty(Model.FBLink.Title))
        {
            <div class="fb-like">
                <a href="@Model.FBLink.Title" target="_blank">
                    <img src="~/Content/Images/facebook_icon.png" alt="Facebook Fanpage"/>
                </a>
            </div>
            <div id="fb-root">
                <div class="fb-like" 
                     data-href="@Model.FBLink.Title" 
                     data-send="true" 
                     data-layout="button_count" 
                     data-width="100" 
                     data-show-faces="true" 
                     data-colorscheme="dark">
                </div>
            </div>
        }
    </div>
</div>